package map;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class Test_Map {
    @Test
    public void method1(){
        Map<Object, Object> objectObjectHashMap = new HashMap<>();
        String name1="zh";
        String name2="zhang";
        String name3="lisi";
        objectObjectHashMap.put(1,name1);
//        objectObjectHashMap.put(5,name2);
//        objectObjectHashMap.put(2,name3);
//        objectObjectHashMap.put("name4","name4");
        System.out.println(objectObjectHashMap);
    }
    @Test
    public void method2(){
        HashMap<Object, Object> map = new HashMap<>(100000000);
        System.out.println(map.size());

    }
}
